﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchCleanPlan.ascx.vb"
    Inherits="WebForm_ManageWorkContent_SearchCleanPlan" %>
<%@ Register Namespace="My" TagPrefix="cc1" %>
<%@ Register Src="~/WebForm/CommonControl/AnnualControl.ascx" TagName="AnnualControl"
    TagPrefix="My" %>
<table>
    <tr>
        <td align="right">
            <asp:Label ID="lblAnnual" runat="server" meta:resourcekey="lblAnnual"></asp:Label>
        </td>
        <td align="left">
            <My:AnnualControl ID="AnnualControl1" runat="server" />
        </td>
    </tr>
    <tr>
        <td align="right">
            <asp:Label ID="lblOrganization" runat="server" meta:resourcekey="lblOrganization"></asp:Label>
        </td>
        <td align="left">
            <asp:DropDownList ID="ddlOrganization" runat="server" AutoPostBack="false">
            </asp:DropDownList>
        </td>        
    </tr>
    <tr>
        <td align="right">
            <asp:Label ID="lblPlanItemType" runat="server" meta:resourcekey="lblPlanItemType"></asp:Label>
        </td>
        <td align="left">
            <asp:DropDownList ID="ddlPlanItemType" runat="server">
            </asp:DropDownList>
        </td>
        <td align="left">
            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
            <asp:Button ID="btnAddPlanItem" runat="server" meta:resourcekey="btnAddPlanItem" />
        </td>
    </tr>
</table>
<br />
<My:MyGridView ID="gv" runat="server" SkinID="pager" AllowPaging="True" meta:resourcekey="gv"
    AllowHoverSelect="False" DataKeyNames="PlanID,UOrganizationID" AllowHoverEffect="True" MySortDirection="Ascending">
    <Columns>
        <asp:BoundField DataField="OrganizationName" meta:resourcekey="bfOrganizationName" />
        <asp:BoundField DataField="ItemTypeName" meta:resourcekey="bfItemTypeName">
            <itemstyle width="55px" />
        </asp:BoundField>
        <asp:BoundField DataField="PlanName" meta:resourcekey="bfPlanName"> 
            <itemstyle width="35%" />
        </asp:BoundField>       
<%--        <asp:TemplateField meta:resourcekey="bfWorkItem">
            <itemtemplate>
<asp:Label id="lblLocation" runat="server" Text='<%# Eval("Location") %>' ></asp:Label>
</itemtemplate>
            <itemstyle width="180px" />
        </asp:TemplateField>--%>
        <asp:BoundField DataField="PersonInCharge" meta:resourcekey="bfCreateBy">
            <itemstyle horizontalalign="Center" />
        </asp:BoundField>
        <asp:TemplateField meta:resourcekey="DateSpan">
            <itemtemplate>
<asp:Label id="Label1" runat="server" Text='<%# Bind("StartDate", "{0:yyyy/MM/dd}") %>'></asp:Label>~<asp:Label id="Label2" runat="server" Text='<%# Bind("EndDate", "{0:yyyy/MM/dd}") %>'></asp:Label>
</itemtemplate>
            <itemstyle horizontalalign="Center" />
        </asp:TemplateField>
        <asp:TemplateField>
            <itemtemplate>
                <asp:MultiView ID="mvForm" runat="server" ActiveViewIndex="0">
                    <asp:View ID="vwEdit" runat="server">
                <asp:LinkButton id="lknEdit" meta:resourcekey="lknEdit" runat="server" CommandName="Edit"></asp:LinkButton> 

                    </asp:View>                                    
                    <asp:View ID="vwSelect" runat="server">
                <asp:LinkButton ID="lknSelect" runat="server" 
                    meta:resourcekey="lknSelect" CommandName="Select"></asp:LinkButton>                                
                    </asp:View>
                </asp:MultiView>
            
</itemtemplate>
            <itemstyle horizontalalign="Center" />
        </asp:TemplateField>
        <asp:TemplateField>
            <itemtemplate>
                <asp:LinkButton ID="lknDelete" CommandName="Delete" runat="server" meta:resourcekey="lknDelete"></asp:LinkButton>
                <ajaxToolkit:ConfirmButtonExtender ID="cbDelete" runat="server" TargetControlID="lknDelete" meta:resourcekey="cbDelete"></ajaxToolkit:ConfirmButtonExtender>
            
</itemtemplate>
            <itemstyle horizontalalign="Center" />
        </asp:TemplateField>
    </Columns>
</My:MyGridView>
